import request from "@/utils/request";
// 1、测试接口
export const ceshi = (data) => {
  // console.log(data);
  return request({
    url: "/admin.index/ceshi",
    method: "POST",
    data,
  });
};
// 1、新增班次
// admin.school/addShift
export const addShift = (data) => {
  // console.log(data);
  return request({
    url: "admin.school/addShift",
    method: "POST",
    data,
  });
};
// 2、班次列表 /admin.school/shiftList
export const shiftList = (data) => {
  // console.log(data);
  return request({
    url: "admin.school/shiftList",
    method: "POST",
    data,
  });
};
// 3、编辑班次
export const updateShift = (data) => {
  // console.log(data);
  return request({
    url: "admin.school/updateShift",
    method: "POST",
    data,
  });
};
//4、删除班次
// 5、查询班次

// addCheckIn
export const addCheckIn = (data) => {
  // console.log(data);
  return request({
    url: "admin.school/addCheckIn",
    method: "POST",
    data,
  });
};

// 考勤组列表
export const checkInList = (data) => {
  // console.log(data);
  return request({
    url: "admin.school/checkInList",
    method: "POST",
    data,
  });
};

// 编辑考勤组 /admin.school/updateCheckIn
export const updateCheckIn = (data) => {
  // console.log(data);
  return request({
    url: "admin.school/updateCheckIn",
    method: "POST",
    data,
  });
};
// 启动考勤 /admin.school/qidongCheck
export const qidongCheck = (data) => {
  // console.log(data);
  return request({
    url: "admin.school/qidongCheck",
    method: "POST",
    data,
  });
};
// 删除班次 /admin.school/qidongCheck
export const delShift = (data) => {
  // console.log(data);
  return request({
    url: "admin.school/delShift",
    method: "POST",
    data,
  });
};
// 根据考勤组id 查询安次名称 checkInDetail
export const checkInDetail = (data) => {
  // console.log(data);
  return request({
    url: "admin.school/checkInDetail",
    method: "POST",
    data,
  });
};
// 禁用考勤组 delCheck
export const delCheck = (data) => {
  // console.log(data);
  return request({
    url: "admin.school/delCheck",
    method: "POST",
    data,
  });
};
// 删除考勤组
export const deleteCheck = (data) => {
  // console.log(data);
  return request({
    url: "admin.school/deleteCheck",
    method: "POST",
    data,
  });
};
